Sets properties of an ADO command object.
#Include <AD.au3>
_AD_SetADOProperties($sP1 = ""[, $sP2 = ""[, $sP3 = ""[, $sP4 = ""[, $sP5 = ""[, $sP6 = ""[, $sP7 = ""[, $sP8 = ""[, $sP9 = ""[, $sP10 = ""]]]]]]]]])
Parameters
| $sP1 | Property to set. This can be a string with the format propertyname=value OR a zero based one-dimensional array with unlimited number of strings in the format propertyname=value |
| $sP2 | Optional: Same as $sP1 but no array is allowed |
| $sP3 | Optional: Same as $sP2 |
| $sP4 | Optional: Same as $sP2 |
| $sP5 | Optional: Same as $sP2 |
| $sP6 | Optional: Same as $sP2 |
| $sP7 | Optional: Same as $sP2 |
| $sP8 | Optional: Same as $sP2 |
| $sP9 | Optional: Same as $sP2 |
| $sP10 | Optional: Same as $sP2 |
Return Value
Success: 1
Remarks
You can query the properties of the ADO connection and command object but you can only set the properties of the command object.
Related
See Also
ADO Command: http://msdn.microsoft.com/en-us/library/ms675022(v=VS.85).aspx
Example
#AutoIt3Wrapper_AU3Check_Parameters= -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#AutoIt3Wrapper_AU3Check_Stop_OnWarning=Y
#include <AD.au3>
; Open Connection to the Active Directory
_AD_Open()
If @error Then Exit MsgBox(16, "Active Directory Example Skript", "Function _AD_Open encountered a problem. @error = " & @error & ", @extended = " & @extended)
; *****************************************************************************
; Example 1
; Set a single property of the ADO Command Object
; *****************************************************************************
Global $aResult = _AD_SetADOProperties("Page Size = 100")
If @error <> 0 Then
MsgBox(16, "Active Directory Functions - Example 1", "Error setting properties of the ADO command object. @error = " & @error & ", @extended = " & @extended)
Else
$aResult = _AD_GetADOProperties("Com", "Page Size")
_ArrayDisplay($aResult, "ADO Command Object")
EndIf